[8,7,5],[7,4,9]
class Solution:
    def solution(self , tangCards , wangCards ):
        count = 0
        maxPoints = 0
        dict = {}
        for i in tangCards:
            maxPoints = max(maxPoints, count)
            for j in wangCards:

                if j > i:
                    dict[i] = 3
                    count = count + 3
                    continue
                elif j == i:
                    count = count + 1


print(Solution().solution([8,7,5],[7,4,9]))